package net.wofly.cashier.dishes.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author lign
 * @version 1.0
 * @created 17-10月-2017 21:57:56
 */
@Data
@Entity
@Table(name = "cashier_dish_dailycommoditynum")
@ApiModel(description = "每日菜品数量")
public class DailyCommodityNum {
    
    @Id
    private String dailyCommodityNumID;
    @ApiModelProperty(value = "商品ID（菜品ID）",required = true)
    private String commodityID;
    private Long modifyDate;
    /**
     * 菜品可卖数量
     */
    @ApiModelProperty(value = "菜品可卖数量",required = true)
    private Integer num;
    /**
     * 菜品当日剩余可点数量
     */
    @ApiModelProperty(value = "菜品当日剩余可点数量",required = true)
    private Integer residueNum;
    /**
     * 设置日期
     */
    @ApiModelProperty(value = "设置日期(日期时间格式的0点的毫秒数)",required = true)
    private Long setDate;
    
    public DailyCommodityNum() {
        
    }
    @Override
    public void finalize() throws Throwable {
        
    }
}